import { setCache } from './cache';

export default (callback) => {
  if (!callback) return;

  if (typeof callback !== 'function') {
    throw new Error('registerAppEnter must be function.');
  }
  console.log('callback', callback)
  setCache('appEnter', callback);
}